package com.martin.study.others;

public class FinallyTest {

	public static void main(String[] args) {
		System.out.println(test());
	}

	public static String test(){
		try {
			System.out.println("body...");
			boolean flag = true;
			if(flag){
				throw new IllegalArgumentException("A");
			}
			return "body";
		} catch (Exception e){
			boolean flag = true;
			if(flag){
				throw new IllegalArgumentException("B");
			}
		} finally {
			System.out.println("finally...");
			boolean flag = true;
			if(flag){
				throw new IllegalArgumentException("C");
			}
		}
		return "finally";
	 }
}
